/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const datastisim = {
  path: '/datastisim',
  component: Layout,
  redirect: 'noRedirect',
  name: '对账统计',
  alwaysShow: true,
  meta: {
    title: '对账统计',
    icon: 'chart',
    roles: ['/datastisim/allData', '/datastisim/payWay', '/datastisim/businessType']
  },
  children: [
    {
      path: 'allData',
      component: () => import('@/views/datastisim/allData/index'),
      name: 'allData',
      meta: { title: '总收入统计', noCache: true, roles: ['/datastisim/allData'] }
    },

    {
      path: 'payWay',
      component: () => import('@/views/datastisim/payWay/index'),
      name: 'payWay',
      meta: { title: '按支付方式统计', noCache: true, roles: ['/datastisim/payWay'] }
    },
    {
      path: 'businessType',
      component: () => import('@/views/datastisim/businessType/index'),
      name: 'businessType',
      meta: { title: '按交易类型统计', noCache: true, roles: ['/datastisim/businessType'] }
    }
  ]
}

export default datastisim
